<?php

namespace App\Http\Controllers;

use App\Models\Coin;
use App\Models\Contact;
use App\Models\User;
use App\Models\UserCoin;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Http\Request;

class ContactController extends Controller
{
    use AuthorizesRequests, DispatchesJobs, ValidatesRequests;

    public function save(Request $request)
    {
        $data = $request->all();
        Contact::query()->create($data);
        return $this->success();
    }
}
